<?php

class SalmonIngest {

	private $rawSalmonData;
	private $salmonXML;
	
	public function __construct($rawStringData) {
		$this->rawSalmonData = $rawStringData;
	}
	
	public function chew() {
		$this->salmonXML = DOMDocument::loadXML($this->rawSalmonData);
		$magicEnvelope = MagicEnvelope::buildFromDOM($this->salmonXML);
		echo $magicEnvelope;
	}
	
}